name_list = ["Bob","Alice","Amy","John"]
name_list[0] = "David"

name_list.insert(0,"Mike")
name_list.insert(3,"Eve")
name_list.insert(3,"Johnson")

print(f"I am sorry to tell you that I can only invite tow guests")

while len(name_list) > 2:
    pop_guest = name_list.pop()
    print(f"Sorry,{pop_guest},you are no longer invited")

for guest in name_list[:2]:
    print(f"Dear {guest},I would like to have dinner with you")

del name_list[:2]
print(f"Final guest list:{name_list}")

